package com.pdg.mcplugin.invisiblehand.dataproviders;

import java.io.File;

import com.pdg.mcplugin.common.baseclasses.DataProviderBase;
import com.pdg.mcplugin.invisiblehand.InvisibleHand;

public class DataProvider extends DataProviderBase<InvisibleHand> {

	private static final String CONNECTION_STRING = "jdbc:sqlite:%s"+ File.separator + "invisiblehand.db";
	
	private CommodityTableProvider commodityTableProvider = null;
	public CommodityTableProvider getCommodityTableProvider(){
		if(commodityTableProvider==null){
			commodityTableProvider = new CommodityTableProvider(this);
		}
		return commodityTableProvider;
	}

	public DataProvider(InvisibleHand thePlugin) {
		super(thePlugin,CONNECTION_STRING);
	}

}
